package com.zpz.framework.zpzoauth.dao;

import com.zpz.framework.zpzoauth.common.dao.ZpzOauthBaseMapper;
import com.zpz.framework.zpzoauth.pojo.pe.GetRoleMenuByUserCodePe;
import com.zpz.framework.zpzoauth.pojo.po.FrameMenu;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author zhangpanzhi
 * @time 2019-07-09
 * @description 未经本人允许请勿随便改动，尊重劳动
 * */
public interface ZpzOauthFrameMenuMapper extends ZpzOauthBaseMapper<FrameMenu> {

    List<GetRoleMenuByUserCodePe> selectRoleMenuByUserCode(@Param("userCode") String userCode, @Param("roleCode") String roleCode, @Param("clientId") String clientId);
    List<GetRoleMenuByUserCodePe> selectDepartmentMenuByUserCode(@Param("userCode") String userCode,@Param("departmentId") Long departmentId, @Param("clientId") String clientId);

    /**
     * 查询菜单
     * @param mapParam
     * @return
     */
    FrameMenu selectFrameMenu(Map mapParam);

    /**
     * 新增菜单
     * @param obj
     * @return
     */
    Integer insertFrameMenu(FrameMenu obj);

    /**
     * 修改菜单
     * @param obj
     * @return
     */
    Integer updateFrameMenu(FrameMenu obj);

    /**
     * 删除菜单
     * @param mapParam
     * @return
     */
    Integer  deleteFrameMenu(Map mapParam);
}
